package com.jiliang.jiliangserver.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.jiliang.jiliangserver.model.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;


import java.util.Date;

/**
 * 应急预案
 */
@Data
@EqualsAndHashCode(callSuper = true)
public class JlMessage extends BaseEntity {
    //预案id
    private Long id;
    //消息标题
    private String msgTitle;
    //消息内容
    private String msgContent;
    //消息类型：1公告 2消息
    private String msgType;
    //阅读时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date readTime;
    //处理时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date handleTime;
    //创建时间
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date createTime;
    //是否已读 0未读 1已读
    private String isRead;
    //是否已处理  0未处理 1已处理
    private String isHandle;

    //0未推送 1已推送
    private String isPush;

    //消息创建人
    private String createBy;
    //阅读人
    private String reader;
    //消息状态：0待发布 1已发布
    private String msgStatus;
    //删除标识
    private String delFlag;

    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date updateTime;

    private String updateBy;

}
